<?php
class ORMpz_ecom_mthd_payment {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->intro_brief)) {
      $obj->intro_brief =  $args->intro_brief;
    }
    if (isset($args->status)) {
      $obj->status =  $args->status;
    }
    if (isset($args->is_offline)) {
      $obj->is_offline =  $args->is_offline;
    }
    if (isset($args->is_custom)) {
      $obj->is_custom =  $args->is_custom;
    }
    if (isset($args->folder)) {
      $obj->folder =  $args->folder;
    }
    if (isset($args->width)) {
      $obj->width =  $args->width;
    }
    if (isset($args->height)) {
      $obj->height =  $args->height;
    }
    if (isset($args->order)) {
      $obj->order =  $args->order;
    }
    return $obj;
  }
}
?>
